// 存放状态
const state = {
  routes: {
    statusOptions: [
      { label: "启用", value: 1 },
      { label: "禁用", value: 0 }
    ],
    deductionStatus: [
      { label: "增加", value: "1" },
      { label: "减少", value: "0" }
    ],
    typeOptions: [
      { label: "系统", value: "-1" },
      { label: "充值", value: "1" },
      { label: "交易", value: "2" },
      { label: "返佣", value: "3" },
      { label: "强制交易", value: "4" },
      { label: "推广返佣", value: "5" },
      { label: "下级交易返佣", value: "6" },
      { label: "提现", value: "7" },
      { label: "后台充值", value: "8" },
      { label: "后台扣款", value: "9" }
    ],
    rechargeOptions: [
      { label: "增加", value: "1" },
      { label: "减少", value: "2" }
    ],
    stateOptions: [
      { label: "正常", value: 1 },
      { label: "冻结", value: 0 }
    ],
    dealStateOptions: [
      { label: "允许提现", value: 1 },
      { label: "禁止提现", value: 0 }
    ],
    networkStatus: [
      { label: "Ethereum", value: "Ethereum" },
      { label: "TRON", value: "TRON" },
      { label: "Bitcoin", value: "Bitcoin" }
    ]
  },
  rules: {
    email: [{ required: true, message: "请输入邮箱", trigger: "blur" }],
    nickname: [{ required: true, message: "请输入昵称", trigger: "blur" }],
    phoneNo: [{ required: true, message: "请输入手机号码", trigger: "blur" }],
    amount: [{ required: true, message: "请输入金额", trigger: "blur" }],
    userPwd: [{ required: true, message: "请输入登录密码", trigger: "blur" }],
    cashPwd: [{ required: true, message: "请输入交易密码", trigger: "blur" }],
    credit: [{ required: true, message: "请输入信誉度", trigger: "blur" }],
    bankname: [{ required: true, message: "请输入开户银行", trigger: "blur" }],
    cardnum: [{ required: true, message: "请输入银行卡号", trigger: "blur" }],
    levelId: [
      { required: true, message: "请选择vip等级", trigger: ["blur", "change"] }
    ],
    state: [
      { required: true, message: "请选择状态", trigger: ["blur", "change"] }
    ],
    dealState: [
      { required: true, message: "请选择提现开关", trigger: ["blur", "change"] }
    ],
    username: [
      { required: true, message: "请输入用户用户名称", trigger: "blur" }
    ],
    deductionStatus: [
      { required: true, message: "请选择状态", trigger: ["blur", "change"] }
    ],
    amount: [{ required: true, message: "请输入金额", trigger: "blur" }],
    price: [{ required: true, message: "请输入会员价格", trigger: "blur" }],
    orderLimit: [
      { required: true, message: "请输入接单限制", trigger: "blur" }
    ],
    rebateRatio: [
      { required: true, message: "请输入佣金比例", trigger: "blur" }
    ],
    withdrawNum: [
      { required: true, message: "请输入提现次数", trigger: "blur" }
    ],
    withdrawMin: [
      { required: true, message: "请输入提现最小限制", trigger: "blur" }
    ],
    withdrawMax: [
      { required: true, message: "请输入提现最大限制", trigger: "blur" }
    ],
    balanceMin: [
      { required: true, message: "请输入用户余额限制", trigger: "blur" }
    ],
    autoVipNum: [
      { required: true, message: "请输入自动升级需邀请", trigger: "blur" }
    ],
    withdrawMinOrder: [
      { required: true, message: "请输入提现至少完成订单/天", trigger: "blur" }
    ],
    withdrawRate: [
      { required: true, message: "请输入提现手续费", trigger: "blur" }
    ],
    stuckIndex: [
      { required: true, message: "请填入撞单的位置（数字）", trigger: "blur" }
    ],
    rebateMultiple: [
      { required: true, message: "请输入佣金倍数", trigger: "blur" }
    ],
    realName: [{ required: true, message: "请输入姓名", trigger: "blur" }],
    address: [{ required: true, message: "请输入钱包地址", trigger: "blur" }],
    network: [
      { required: true, message: "请选择网络", trigger: ["blur", "change"] }
    ]
  }
};

// 更改state中状态的逻辑，同步操作
const mutations = {};

// 提交mutation，异步操作
const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
